import request from '@/utils/request'

// tree
export function tree(data) {
  return request({
    url: `/system/organization/tree`,
    method: 'post',
    data
  })
}

// 新增
export function add(data) {
  return request({
    url: `/system/organization`,
    method: 'post',
    data
  })
}

// 修改
export function edit(data) {
  return request({
    url: `/system/organization`,
    method: 'put',
    data
  })
}

// 删除
export function remove(data) {
  return request({
    url: `/system/organization`,
    method: 'delete',
    data
  })
}
